package com.bottle.event;

import lombok.Data;
import org.springframework.context.ApplicationEvent;

import java.util.Set;

/**
 * @author: chenyuncong
 * @Date: 2020/5/11 15:45
 * 消息事件对象
 */
//@Data
public class MessageEvent extends ApplicationEvent {

    private String message;
    private Set<String> onLineSet;

    public MessageEvent(Object source, String message, Set<String> onLineSet) {
        super(source);
        this.message = message;
        this.onLineSet = onLineSet;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Set<String> getOnLineSet() {
        return onLineSet;
    }

    public void setOnLineSet(Set<String> onLineSet) {
        this.onLineSet = onLineSet;
    }
}
